// eslint-disable-next-line
import { UserLayout } from '@/layouts'

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/pages/system/user/Login'),
        meta: {
          title: '登录',
        }
      },
      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/pages/system/user/Register'),
        meta: {
          title: '注册',
        }
      },
      {
        path: 'forgePassword',
        name: 'forgePassword',
        component: () => import(/* webpackChunkName: "user" */ '@/pages/system/user/ForgePassword'),
        meta: {
          title: '忘记密码',
          meta: { //tab关闭按钮
            page: {
              closable: false
            }
          },
        }
      }
    ]
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/pages/exception/404')
  },
  {
    path: '/403',
    name: '403',
    component: () => import('@/pages/exception/403')
  },
  {
    path: '/500',
    name: '500',
    component: () => import('@/pages/exception/500')
  }
]

